<div id="formbox" >
	<div class="padding">
		<div id="feedback-success">
			<p>Der Benutzer wurde erfolgreich erstellt/bearbeitet.</p>
		</div>
		<div id="feedback-error">
			<p>Beim Erstellen/Bearbeiten des Benutzer gab es einen Fehler. Bitte kontaktieren Sie den Administrator.</p>
		</div>
		<form method="post" id="accountform" name="accountform" action="#">	
			<fieldset style="border:1px solid #ccc;">						
				<legend><?php echo $this->translate("Persönliche Informationen"); ?></legend>
				<div class="ffield">
					<label for="company" ><?php echo $this->translate("Firma"); ?></label>
					<input class="input" type="text" id="company" name="company" value="<?= $this->user['company']; ?>" /> <br />
				</div>
				<div class="ffield">
					<label for="firstname" ><?php echo $this->translate("Vorname"); ?><sup>*</sup></label>
					<input class="input" type="text" id="firstname" name="firstname" value="<?= $this->user['firstname']; ?>" /> <br />
				</div>
				<div class="ffield">
					<label for="lastname" ><?php echo $this->translate("Nachname"); ?><sup>*</sup></label>
					<input class="input" type="text" id="lastname" name="lastname" value="<?= $this->user['lastname']; ?>" /> <br />
				</div>
				<div class="ffield">
					<label for="gender" ><?php echo $this->translate("Geschlecht"); ?><sup>*</sup></label>
					<select class="input" id="gender" name="gender">
						<option value="0" <?php if($this->user['gender'] == 0) echo 'selected="selected"'; ?>><?php echo $this->translate("unbekannt"); ?></option>
						<option value="1" <?php if($this->user['gender'] == 1) echo 'selected="selected"'; ?>><?php echo $this->translate("männlich"); ?></option>
						<option value="2" <?php if($this->user['gender'] == 2) echo 'selected="selected"'; ?>><?php echo $this->translate("weiblich"); ?></option>
					</select>
					<br />
				</div>
				<div class="ffield">
					<label for="mail" ><?php echo $this->translate("E-Mail Adresse")." ".$this->translate("(dient als Benutzername)"); ?><sup>*</sup></label>
					<input class="input" type="text" id="mail" name="mail" value="<?= $this->user['mail']; ?>" /> <br />
				</div>
				
				<div class="ffield">
					<label for="phone_landline" ><?php echo $this->translate("Telefon (Festnetz)"); ?><sup>*</sup></label>
					<input class="input" type="text" id="phone_landline" name="phone_landline" value="<?= $this->user['phone_landline']; ?>" /> <br />
				</div>
				<div class="ffield">
					<label for="phone_mobile" ><?php echo $this->translate("Telefon (Mobil)"); ?><sup>*</sup></label>
					<input class="input" type="text" id="phone_mobile" name="phone_mobile" value="<?= $this->user['phone_mobile']; ?>" /> <br />
				</div>
				<div class="ffield">
					<label for="fax" ><?php echo $this->translate("Telefax"); ?><sup>*</sup></label>
					<input class="input" type="text" id="fax" name="fax" value="<?= $this->user['fax']; ?>" /> <br />
				</div>
				
				<div class="ffield">
					<label for="change_pw" >Passwort ändern?</label>
					<input class="checkbox" type="checkbox" id="change_pw" name="change_pw" value="" /> <br />
				</div>
				<hr class="separator_form" />
				<!-- Abweichende Rechnungsadresse Start -->
				<div id="password_change">
					<div class="ffield">
						<label for="password_old" ><?php echo $this->translate("Altes Passwort"); ?><sup>*</sup></label>
						<input class="input" type="password" id="password_old" name="password_old" value="" /> <br />
					</div>
					<div class="ffield">
						<label for="password_new" ><?php echo $this->translate("Neues Passwort"); ?><sup>*</sup></label>
						<input class="input" type="password" id="password_new" name="password_new" value="" /> <br />
					</div>
					<div class="ffield">
						<label for="password_new_repeat" ><?php echo $this->translate("Neues Passwort (Wiederholung)"); ?><sup>*</sup></label>
						<input class="input" type="password" id="password_new_repeat" name="password_new_repeat" value="" />
						<span class="help">Die beiden Passwörter stimmen nicht überein! Vielleicht ein Tippfehler?</span>
						<br />
					</div>
				</div>
			
				<div class="submitbox" >
					<?php if($this->logged != true) { ?>
					<div class="reset">
						<p><a href="#" onclick="document.accountform.reset(); return false"><?php echo $this->translate("Löschen"); ?></a></p>
					</div>
					<?php } ?>
					<div class="submit">
						<p><a id="submit-accountform" href="#"><?php echo $this->translate("Abschicken"); ?></a></p>
					</div>
				</div>
				<input type="hidden" name="edittype" id="edittype" value="<?php echo $this->edittype; ?>" />
				<input type="hidden" name="uid" id="uid" value="<?php echo $this->user['uid']; ?>" />
			</fieldset>
			<div style="margin-top: 25px;"></div>  
		</form>
	</div>
</div>